home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d18 / turbotut.arc / INTVAR2.PAS < prev    next >
Pascal/Delphi Source File  |  1989-06-30  |  298b  |  18 lines

  1. PROGRAM more_integer_demos;
  2.  
  3. VAR x,y      : INTEGER;
  4.     count    : INTEGER;
  5.  
  6. BEGIN
  7.   x := 12;
  8.   y := 13;
  9.   count := x + y;
  10.   WRITE('The value of x is');
  11.   WRITELN(x:4);
  12.   WRITE('The value of y is');
  13.   WRITELN(y:5);
  14.   WRITE('And count is now ');
  15.   WRITE(count:6);
  16.   WRITELN;
  17. END.
  18.